//
//  ViewController.m
//  OwnerNews
//
//  Created by lanou3g on 15/8/27.
//  Copyright (c) 2015年 Drawzyn. All rights reserved.
//

#import "ViewController.h"


@interface ViewController ()



@property (nonatomic,strong)NSArray *array;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    _DrawTableView = [[drawerView alloc]initWithFrame:CGRectMake(0, 0, 120, self.view.bounds.size.height) style:UITableViewStylePlain];
    _DrawTableView.backgroundColor = [UIColor cyanColor];
    [self.view addSubview:_DrawTableView];
    _array = @[@"收藏",@"免责声明",@"关于我们"];
    _DrawTableView.delegate = self;
    _DrawTableView.dataSource = self;
    self.DrawTableView.tableFooterView = [[UIView alloc]init];
    
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    
    return _array.count;
    
}



- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"ChouTi"];
    if (cell == nil) {
        cell.backgroundColor = [UIColor grayColor];
        cell = [[UITableViewCell alloc]initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:@"ChouTi"];
    }
    cell.textLabel.text = _array[indexPath.row];
    return cell;
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
